package me.zhengjie.modules.management.mapper;


import me.zhengjie.modules.management.domain.ConferenceRoom;
import me.zhengjie.modules.management.domain.ConferenceType;
import me.zhengjie.modules.management.service.dto.ConferenceRoomQueryCriteria;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: yuchao.wang
 * @Date: 2020/12/5
 * @Description :
 */
@Mapper
public interface ConferenceRoomMapper {
    /**
     * 查询预约教室
     *
     * @param conferenceRoomQueryCriteria
     * @return me.zhengjie.modules.management.domain.ConferenceRoom
     */
    List<ConferenceRoom> queryByCriteria(ConferenceRoomQueryCriteria conferenceRoomQueryCriteria);

    /**
     * 根据教室查询对应的教室用途
     */
    String findRoomPurposeById(Integer roomId);

    /**
     * 添加新教室
     *
     * @param conferenceRoom
     * @return void
     */
    void insertConferenceRoom(ConferenceRoom conferenceRoom);

    /**
     * 更新教室信息
     *
     * @param conferenceRoom
     * @return void
     */
    void updateConferenceRoom(ConferenceRoom conferenceRoom);

    /**
     * 根据ID 删除教室
     *
     * @param roomId
     * @return void
     */
    void deleteConferenceRoom(Integer roomId);

    List<ConferenceRoom> findById(Integer roomId);

    String  findRoomById(Integer roomId);

    /**
     * 根据id查询教室费用
     * @param roomId
     * @return
     */
    BigDecimal findCostById(Integer roomId);


}
